package com.hs.monitor.utils;

import javafx.application.Platform;
import javafx.scene.control.TextArea;

public class LogUtil {
    public static TextArea textArea_send;
    public static TextArea textArea_get;

    public static void log(String msg) {
        Platform.runLater(() -> {
            textArea_send.appendText(msg + "\n");
        });
    }

    public static void log_ctrl(String msg) {
        Platform.runLater(() -> {
            textArea_get.appendText(msg + "\n");
        });
    }
}
